package com.nightsoul.servlet3.test.chapter2.web;

import javax.servlet.*;
import java.io.IOException;

public class DynamicFilter implements Filter {

    @Override
    public void init(final FilterConfig filterConfig) throws ServletException {
    }

    @Override
    public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException {
        System.out.println("Dynamic Filter");
        chain.doFilter(request, response);
    }

    @Override
    public void destroy() {
    }

}
